﻿'use strict';

resumeApp.controller('resumeCtrl', ['$scope', 'resumeService', function ($scope, resumeService) {
    $scope.resumes = {};

    //$scope.resumes contains a promise object
    $scope.resumes = resumeService.getResumes();
    console.log($scope.resumes);

    ////to get to the resumes object you do this
    //$scope.resumes.then(function(resumes) {
    //    console.log(resumes);
    //}, function(status) {
    //    console.log(status);
    //});
    
}]);